package com.heima.behavior.service;

import com.heima.model.behavior.dto.LikesBehaviorDto;
import com.heima.model.behavior.dto.ReadBehaviorDto;
import com.heima.model.behavior.dto.UnLikesBehaviorDto;
import com.heima.model.common.dtos.ResponseResult;

import javax.servlet.http.HttpServletRequest;

public interface BehaviorService {
    /**
     * 点赞行为
     * 0 点赞
     * 1 取消点赞
     * @param likesBehaviorDto
     * @return
     */
    ResponseResult likesBehavior(LikesBehaviorDto likesBehaviorDto, HttpServletRequest request);

    /**
     * 是否喜欢功能
     * @param unLikesBehaviorDto
     * @return
     */
    ResponseResult unLikesBehavior(UnLikesBehaviorDto unLikesBehaviorDto, HttpServletRequest request);

    /**
     * 阅读行为
     * @param readBehaviorDto
     * @param request
     * @return
     */
    ResponseResult readBehavior(ReadBehaviorDto readBehaviorDto, HttpServletRequest request);
}
